<?php
$title = '添加客户';
$this->headTitle($title);
$form = $this->form;
?>
    <h1><?php echo $this->escapeHtml($title); ?></h1>
    <hr>
<?php
$form->setAttribute('action', $this->url('client', array(
    'action' => 'add',
    'client_id' => $this->client_id
)));
$form->prepare();
echo $this->form()->openTag($form);
?>
    <div class="regWindow">
        <br>
        <div class="form-group">
            <div class="col-md-2"><?php echo $this->formLabel($form->get('client_id')); ?></div>
            <div class="col-md-3"><?php echo $this->formElement($form->get('client_id')); ?></div>
        </div>
        <br>
        <div class="form-group">
            <div class="col-md-2"><?php echo $this->formLabel($form->get('client_name')); ?></div>
            <div class="col-md-3"><?php echo $this->formElement($form->get('client_name')); ?></div>
        </div>
        <br>
        <div class="form-group">
            <div class="col-md-2"><?php echo $this->formLabel($form->get('client_city')); ?></div>
            <div class="col-md-3"><?php echo $this->formElement($form->get('client_city')); ?></div>
        </div>
        <br>
        <div class="form-group">
            <?php echo $this->formSubmit($form->get('submit')); ?>
        </div>
    </div>
<?php echo $this->form()->closeTag(); ?>